//引入mock模块
import Mock from 'mockjs'   //引入的是对象，首字母大写
//webpack默认暴露图片，json数据
import banner from './banner.json'
import floor from './floor.json'
//mock数据  第一个参数是请求地址，第二个参数是请求返回的数据     这是模拟接口
Mock.mock("/mock/banner",{code:200,data:banner})     //code200代表返回成功
Mock.mock("/mock/floor",{code:200,data:floor})